package action;

import manager.ComManager;
import manager.LoadVariousList;
import manager.ObjectFactory;
import bean.CombinaisonBean;
import bean.PlayMessage;

public class ActionPlay {

	public PlayMessage doPlay(CombinaisonBean c){
		ObjectFactory of = new ObjectFactory();
		ComManager com = of.createComManager();
		PlayMessage mOut = of.createPlayMessage();
		PlayMessage mIn ;
		mOut.setCombi(c);
		mOut.setIdUser(LoadVariousList.getIdUser());
		mIn = (PlayMessage)com.sendMessage(mOut);
		return mIn;
	}
}
